#ifndef FILECONFIG_H
#define FILECONFIG_H

#include <QObject>
#include <QSettings>
#include <memory>


class FileConfig : public QObject
{
    Q_OBJECT
public:
    explicit FileConfig(QObject *parent = nullptr);

    Q_INVOKABLE QString getLastUserID();
    Q_INVOKABLE QString getLastUserPWD();
    Q_INVOKABLE void saveUser(QString qsUserID, QString UserPWD);
signals:

public slots:

private:
    std::shared_ptr<QSettings> m_config;
};

#endif // FILECONFIG_H
